<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>后盾人</title>
  </head>
  <body>
    <h2 id="h2 value">houdunren.com</h2>
    <input type="text" id="inputId" value="后盾人" />
    <script>
      function prototype(el) {
        const prototypes = []
        prototypes.push(el.__proto__)

        prototypes.push(...(el.__proto__ ? prototype(el.__proto__) : []))
        return prototypes
      }
      const h2 = document.querySelector('h2')
      const input = document.querySelector('input')

      console.log(prototype(input))
    </script>
  </body>
</html>
